package com.netease.nie.base.protocol;

/**
 * 返回状态响应码
 * 
 * @author KingsHunter
 * 
 */
public enum SystemResponseCode {

	/**
	 * 成功 : 2000000, 服务端内部异常 : 5000000, 未知错误 : 5000001, 系统参数无效:参数缺失 : 5000002,
	 * 系统参数值无效:参数值无效 : 5000003, 系统维护 : 5000004
	 */
	OK(2000000, "Ok"), INTERNAL_ERROR(5000000, "INTERNAL_ERROR"), UNKOWN_ERROR(
			5000001, "UNKOWN_ERROR"), PARAM_KEY_ILLEGAL(5000002,
			"PARAM_KEY_ILLEGAL"), PARAM_VALUE_ILLEGAL(5000003,
			"PARAM_VALUE_ILLEGAL"), SYSTEM_MAINTENCE(5000004, "SYSTEM_MAINTENCE");

	private int code;

	private String msg;

	private SystemResponseCode(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
